﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
namespace WebApplication1
{
    public partial class Base64 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            byte[] arrBYte = Encoding.UTF8.GetBytes("999999" + "1363881600");

            string s = Convert.ToBase64String(arrBYte);
            Response.Write(s);
            Response.Write("<br/>Length:" + s.Length);
            System.Web.Caching.Cache che = HttpRuntime.Cache;

            var ss = che.Get("che");
            if (ss == null)
            {
                ss = DateTime.Now.ToString();
                che.Insert("che", ss, new System.Web.Caching.CacheDependency("c:\\0.txt"));
                Response.Write("<br/>che is:" + ss);
            }
            else
            {
                Response.Write("<br/>che is:" + ss);
            }

        }


    }
}